package com.bed.lovewithpatientbed.service;

import com.bed.lovewithpatientbed.common.bean.LayUiPageBean;
import com.bed.lovewithpatientbed.pojo.Maintain;
import com.bed.lovewithpatientbed.pojo.PageBean;

import java.util.Date;
import java.util.List;

/**
 * @author myp
 * @version 1.0.0
 * @ClassName MaintainService.java
 * @Description 维修记录Service接口类
 */
public interface MaintainService {
    /**
     * @title 新增维修记录
     * @description 返回值为数字确定是否增加成功
     * @author myp 
     * @updateTime   
     * @throws 
     */
    Integer saveMaintain(Maintain maintain);
    /**
     * @title 维修记录列表查询
     * @description 条件组合查询，分页查询列表
     * @author myp
     * @updateTime
     * @throws
     */
    List<Maintain> selectMaintainList(LayUiPageBean pageBean, Maintain maintain, Date staData, Date endDate);
    /**
     * @title 查询维修记录
     * @description 根基维修记录的编号查询
     * @author myp
     * @updateTime
     * @throws
     */
    Maintain selectMaintain(Integer maintainId);
    /**
     * @title 修改维修状态
     * @description 
     * @author myp 
     * @updateTime   
     * @throws 
     */
    Integer update(Maintain maintain);

    Integer getCount(Maintain maintain, Date staData, Date endDate);
}
